package com.tian.mapper;

import com.tian.entity.ChargeUserPoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChargeUserPointMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChargeUserPoint record);

    ChargeUserPoint selectByPrimaryKey(Long id);
    ChargeUserPoint selectByUserId(Long userId);

    List<ChargeUserPoint> selectAll();

    int updateByPrimaryKey(ChargeUserPoint record);

    int updateUserPoint(@Param("userId") Long userId, @Param("point") Integer point,@Param("changePoint") Integer changePoint);
    int updatePointByUserId(ChargeUserPoint record);

    int addPoint(ChargeUserPoint chargeUserPoint);
}